﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZX.OA.Model;
using ZX.OA.DAL;

namespace ZX.OA.BLL
{
 public   class AssentInfoBLL
    {
        AssentInfoDAL dal = new AssentInfoDAL();

        /// <summary>
        /// 公司资产表显示
        /// </summary>
        /// <returns></returns>
        public List<ZX.OA.Model.AssentInfo> ShowAssentInfo()
        {
            return dal.ShowAssentInfo();
        }
        /// <summary>
        /// 公司资产表添加
        /// </summary>
        /// <param name="a"></param>
        /// <returns></returns>
        public int AddAssentInfo(ZX.OA.Model.AssentInfo a)
        {
            return dal.AddAssentInfo(a);
        }
        /// <summary>
        /// 根据编号删除公司资产信息表
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int DelAssentInfo(int id)
        {
            return dal.DelAssentInfo(id);
        }
        /// <summary>
        /// 获取公司类型表的id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public AssentTypeInfo GetAssentTypeInfo(int id)
        {
            return dal.GetAssentTypeInfo(id);
        }
        /// <summary>
        /// 修改公司资产信息表信息
        /// </summary>
        /// <param name="a"></param>
        /// <returns></returns>
        public int UptAssentInfo(AssentInfo a)
        {
            return dal.UptAssentInfo(a);
        }
        /// <summary>
        /// 公司资产信息表的模糊查询
        /// </summary>
        /// <param name="AssentName"></param>
        /// <returns></returns>
        public List<ZX.OA.Model.AssentInfo> SreachAssentInfo(string AssentName)
        {
            return dal.SreachAssentInfo(AssentName);
        }
    }
}
